function getCompenent() {
    return import('lodash')
    .then(({
        default: _
    }) => {
        const element = document.createElement('div')
        element.innerHTML = _.join(['hello', 'webpack'],' ')
        return element
    })
    .catch((error) => {
        'an error......'
    })
}

getCompenent().then((component) =>{
    document.body.appendChild(component)
})